//functions.h
/********************************************************************************
*																				*
*	Author:			Jared Szechy												*
*	Assignment:		Assignment 3												*
*	Class:			CPS-151														*
*	Instructor:		V. Starkley													*
*	Due Date:		September 20												*
*																				*
*	This file declares the applications functions.								*
*																				*
********************************************************************************/

#include "sortedType.h"

void readAccounts(istream& fin, SortedType& accounts);
//pre: none
//post: reads accounts from a file into the list

void printMenu();
//pre: none
//post: prints menu to the screen

void processSelection(int selection, SortedType& accounts);
//pre: none
//post: calls the appropriate function based on users selection

void printAll(SortedType accounts);
//pre: none
//post: prints all accounts to the screen

bool addAccount(SortedType& accounts);
//pre: none
//post: adds an account

bool deleteAccount(SortedType& accounts);
//pre: none
//post: deletes an account

bool changeName(SortedType& accounts);
//pre: none
//post: changes the name of an account

bool depositFunds(SortedType& accounts);
//pre: none
//post: adds funds to an account

bool withdrawlFunds(SortedType& accounts);
//pre: none
//post: subtracts funds from account

bool printAccount(SortedType& accounts);
//pre: none
//post: prints an acount to the screen

bool writeFile(SortedType accounts);
//pre: none
//post: writes accounts to file